﻿@using OSBLE.Resources
@using OSBLE.Models.Assignments
@model DynamicDictionary
@{
    dynamic dataModel = Model;
    IAssignmentTeam currentTeam = dataModel.AssignmentTeam as IAssignmentTeam;       
}
<td>
@if (currentTeam is AssignmentTeam)
{
    if (string.IsNullOrEmpty(dataModel.ABETProficiency))
    {
        @Html.Raw("N/A");
    }
    else
    {
        @Html.Raw("<select name=\"slctProficiency" + currentTeam.TeamID + "\">");
        string[] opts = new string[] { "None", "Low", "Medium", "High" };
        foreach (string opt in opts)
        {    
            @Html.Raw(string.Format(
                "<option value=\"{0}\" {1}>{0}</option>", opt,
                (opt == dataModel.ABETProficiency) ? "selected" : string.Empty));
        }
        @Html.Raw("</select>");
    }
}
else
{
    @:(not available)
}
</td>